<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPaned</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="prev" href="GtkObject.html" title="GtkObject">
<link rel="next" href="GtkRange.html" title="GtkRange">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="Builder.html" title="Interface builder">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
<link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="api-index-full.html" title="Index of all symbols">
<link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
<link rel="index" href="api-index-2-2.html" title="Index of new symbols in 2.2">
<link rel="index" href="api-index-2-4.html" title="Index of new symbols in 2.4">
<link rel="index" href="api-index-2-6.html" title="Index of new symbols in 2.6">
<link rel="index" href="api-index-2-8.html" title="Index of new symbols in 2.8">
<link rel="index" href="api-index-2-10.html" title="Index of new symbols in 2.10">
<link rel="index" href="api-index-2-12.html" title="Index of new symbols in 2.12">
<link rel="index" href="api-index-2-14.html" title="Index of new symbols in 2.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkObject.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="AbstractObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkRange.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkPaned.synopsis" class="shortcut">Top</a>
                 | 
                <a href="#GtkPaned.description" class="shortcut">Description</a>
                 | 
                <a href="#GtkPaned.object-hierarchy" class="shortcut">Object Hierarchy</a>
                 | 
                <a href="#GtkPaned.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                 | 
                <a href="#GtkPaned.properties" class="shortcut">Properties</a>
                 | 
                <a href="#GtkPaned.child-properties" class="shortcut">Child Properties</a>
                 | 
                <a href="#GtkPaned.style-properties" class="shortcut">Style Properties</a>
                 | 
                <a href="#GtkPaned.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkPaned"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkPaned.top_of_page"></a>GtkPaned</span></h2>
<p>GtkPaned — Base class for widgets with two adjustable panes</p>
</td>
<td valign="top" align="right"><img src="panes.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkPaned.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;

                    <a class="link" href="GtkPaned.html#GtkPaned-struct" title="GtkPaned">GtkPaned</a>;
void                <a class="link" href="GtkPaned.html#gtk-paned-add1" title="gtk_paned_add1 ()">gtk_paned_add1</a>                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);
void                <a class="link" href="GtkPaned.html#gtk-paned-add2" title="gtk_paned_add2 ()">gtk_paned_add2</a>                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);
#define             <a class="link" href="GtkPaned.html#gtk-paned-gutter-size" title="gtk_paned_gutter_size()">gtk_paned_gutter_size</a>               (p,s)
void                <a class="link" href="GtkPaned.html#gtk-paned-pack1" title="gtk_paned_pack1 ()">gtk_paned_pack1</a>                     (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> resize,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> shrink);
void                <a class="link" href="GtkPaned.html#gtk-paned-pack2" title="gtk_paned_pack2 ()">gtk_paned_pack2</a>                     (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> resize,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> shrink);
<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *         <a class="link" href="GtkPaned.html#gtk-paned-get-child1" title="gtk_paned_get_child1 ()">gtk_paned_get_child1</a>                (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);
<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *         <a class="link" href="GtkPaned.html#gtk-paned-get-child2" title="gtk_paned_get_child2 ()">gtk_paned_get_child2</a>                (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);
#define             <a class="link" href="GtkPaned.html#gtk-paned-set-gutter-size" title="gtk_paned_set_gutter_size()">gtk_paned_set_gutter_size</a>           (p,s)
void                <a class="link" href="GtkPaned.html#gtk-paned-set-position" title="gtk_paned_set_position ()">gtk_paned_set_position</a>              (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> position);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                <a class="link" href="GtkPaned.html#gtk-paned-get-position" title="gtk_paned_get_position ()">gtk_paned_get_position</a>              (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                           +----GtkPaned
                                 +----<a class="link" href="GtkHPaned.html" title="GtkHPaned">GtkHPaned</a>
                                 +----<a class="link" href="GtkVPaned.html" title="GtkVPaned">GtkVPaned</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkPaned implements
 AtkImplementorIface and  <a class="link" href="gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkPaned.html#GtkPaned--max-position" title='The "max-position" property'>max-position</a>"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a class="link" href="GtkPaned.html#GtkPaned--min-position" title='The "min-position" property'>min-position</a>"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a class="link" href="GtkPaned.html#GtkPaned--position" title='The "position" property'>position</a>"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a class="link" href="GtkPaned.html#GtkPaned--position-set" title='The "position-set" property'>position-set</a>"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.child-properties"></a><h2>Child Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkPaned.html#GtkPaned--c-resize" title='The "resize" child property'>resize</a>"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a class="link" href="GtkPaned.html#GtkPaned--c-shrink" title='The "shrink" child property'>shrink</a>"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.style-properties"></a><h2>Style Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkPaned.html#GtkPaned--s-handle-size" title='The "handle-size" style property'>handle-size</a>"              <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="GtkPaned.html#GtkPaned-accept-position" title='The "accept-position" signal'>accept-position</a>"                                : Run Last / Action
  "<a class="link" href="GtkPaned.html#GtkPaned-cancel-position" title='The "cancel-position" signal'>cancel-position</a>"                                : Run Last / Action
  "<a class="link" href="GtkPaned.html#GtkPaned-cycle-child-focus" title='The "cycle-child-focus" signal'>cycle-child-focus</a>"                              : Run Last / Action
  "<a class="link" href="GtkPaned.html#GtkPaned-cycle-handle-focus" title='The "cycle-handle-focus" signal'>cycle-handle-focus</a>"                             : Run Last / Action
  "<a class="link" href="GtkPaned.html#GtkPaned-move-handle" title='The "move-handle" signal'>move-handle</a>"                                    : Run Last / Action
  "<a class="link" href="GtkPaned.html#GtkPaned-toggle-handle-focus" title='The "toggle-handle-focus" signal'>toggle-handle-focus</a>"                            : Run Last / Action
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.description"></a><h2>Description</h2>
<p>
<a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> is the base class for widgets with two panes,
arranged either horizontally (<a class="link" href="GtkHPaned.html" title="GtkHPaned"><span class="type">GtkHPaned</span></a>) or
vertically (<a class="link" href="GtkVPaned.html" title="GtkVPaned"><span class="type">GtkVPaned</span></a>). Child widgets are
added to the panes of the widget with
<a class="link" href="GtkPaned.html#gtk-paned-pack1" title="gtk_paned_pack1 ()"><code class="function">gtk_paned_pack1()</code></a> and <a class="link" href="GtkPaned.html#gtk-paned-pack2" title="gtk_paned_pack2 ()"><code class="function">gtk_paned_pack2()</code></a>. The division
beween the two children is set by default from the
size requests of the children, but it can be adjusted
by the user.
</p>
<p>
A paned widget draws a separator between the two
child widgets and a small handle that the user
can drag to adjust the division. It does not
draw any relief around the children or around
the separator. (The space in which the separator
is called the gutter.) Often, it is useful
to put each child inside a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a> with the
shadow type set to <a class="link" href="gtk-Standard-Enumerations.html#GTK-SHADOW-IN--CAPS"><code class="literal">GTK_SHADOW_IN</code></a> so that the
gutter appears as a ridge. No separator is drawn
if one of the children is missing.
</p>
<p>
Each child has two options that can be set,
<em class="parameter"><code>resize</code></em> and <em class="parameter"><code>shrink</code></em>. If <em class="parameter"><code>resize</code></em> is true, then when the
<a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> is resized, that child will expand
or shrink along with the paned widget. If <em class="parameter"><code>shrink</code></em>
is true, then when that child can be made smaller
than its requisition by the user. Setting <em class="parameter"><code>shrink</code></em>
to <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
><code class="literal">FALSE</code></a> allows the application to set a minimum
size. If <em class="parameter"><code>resize</code></em> is false for both children, then
this is treated as if <em class="parameter"><code>resize</code></em> is true for both
children.
</p>
<p>
The application can set the position of the slider
as if it were set by the user, by calling
<a class="link" href="GtkPaned.html#gtk-paned-set-position" title="gtk_paned_set_position ()"><code class="function">gtk_paned_set_position()</code></a>.
</p>
<div class="example">
<a name="id3611023"></a><p class="title"><b>Example 48. Creating a paned widget with minimum sizes.</b></p>
<div class="example-contents"><pre class="programlisting">
GtkWidget *hpaned = gtk_hpaned_new ();
GtkWidget *frame1 = gtk_frame_new (NULL);
GtkWidget *frame2 = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_IN);
gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_IN);
gtk_widget_set_size_request (hpaned, 200 + GTK_PANED (hpaned)-&gt;gutter_size, -1);
gtk_paned_pack1 (GTK_PANED (hpaned), frame1, TRUE, FALSE);
gtk_widget_set_size_request (frame1, 50, -1);
gtk_paned_pack2 (GTK_PANED (hpaned), frame2, FALSE, FALSE);
gtk_widget_set_size_request (frame2, 50, -1);
</pre></div>
</div>
<br class="example-break">
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GtkPaned-struct"></a><h3>GtkPaned</h3>
<pre class="programlisting">typedef struct _GtkPaned GtkPaned;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-add1"></a><h3>gtk_paned_add1 ()</h3>
<pre class="programlisting">void                gtk_paned_add1                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre>
<p>
Adds a child to the top or left pane with
default parameters. This is equivalent
to <code class="literal">gtk_paned_pack1 (paned, child, FALSE, TRUE)</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td>a paned widget
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the child to add
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-add2"></a><h3>gtk_paned_add2 ()</h3>
<pre class="programlisting">void                gtk_paned_add2                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre>
<p>
Adds a child to the bottom or right pane with default
parameters. This is equivalent to
<code class="literal">gtk_paned_pack2 (paned, child, TRUE, TRUE)</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td>a paned widget
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the child to add
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-gutter-size"></a><h3>gtk_paned_gutter_size()</h3>
<pre class="programlisting">#define	gtk_paned_gutter_size(p,s)		(void) 0
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_paned_gutter_size</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Old name for <a class="link" href="GtkPaned.html#gtk-paned-set-gutter-size" title="gtk_paned_set_gutter_size()"><code class="function">gtk_paned_set_gutter_size()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
<td>a paned widget
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
<td>the width of the gutter in pixels
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-pack1"></a><h3>gtk_paned_pack1 ()</h3>
<pre class="programlisting">void                gtk_paned_pack1                     (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> resize,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> shrink);</pre>
<p>
Adds a child to the top or left pane.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td>a paned widget
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the child to add
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>resize</code></em> :</span></p></td>
<td>should this child expand when the paned widget is resized.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>shrink</code></em> :</span></p></td>
<td>can this child be made smaller than its requisition.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-pack2"></a><h3>gtk_paned_pack2 ()</h3>
<pre class="programlisting">void                gtk_paned_pack2                     (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> resize,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> shrink);</pre>
<p>
Adds a child to the bottom or right pane.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td>a paned widget
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the child to add
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>resize</code></em> :</span></p></td>
<td>should this child expand when the paned widget is resized.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>shrink</code></em> :</span></p></td>
<td>can this child be made smaller than its requisition.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-get-child1"></a><h3>gtk_paned_get_child1 ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *         gtk_paned_get_child1                (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);</pre>
<p>
Obtains the first child of the paned widget.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> first child, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> if it is not set.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-get-child2"></a><h3>gtk_paned_get_child2 ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *         gtk_paned_get_child2                (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);</pre>
<p>
Obtains the second child of the paned widget.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> second child, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> if it is not set.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-set-gutter-size"></a><h3>gtk_paned_set_gutter_size()</h3>
<pre class="programlisting">#define	gtk_paned_set_gutter_size(p,s)		(void) 0
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_paned_set_gutter_size</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
In older versions of GTK+, this function used to set the width of the
gutter (the area between the two panes). It does nothing now.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
<td>a paned widget
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
<td>the width of the gutter in pixels
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-set-position"></a><h3>gtk_paned_set_position ()</h3>
<pre class="programlisting">void                gtk_paned_set_position              (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> position);</pre>
<p>
Sets the position of the divider between the two panes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td> pixel position of divider, a negative value means that the position
           is unset.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-paned-get-position"></a><h3>gtk_paned_get_position ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                gtk_paned_get_position              (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);</pre>
<p>
Obtains the position of the divider between the two panes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> position of the divider
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.property-details"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkPaned--max-position"></a><h3>The <code class="literal">"max-position"</code> property</h3>
<pre class="programlisting">  "max-position"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>
The largest possible value for the position property. This property is derived from the
size and shrinkability of the widget's children.</p>
<p>
</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 2147483647</p>
<p>Since 2.4</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned--min-position"></a><h3>The <code class="literal">"min-position"</code> property</h3>
<pre class="programlisting">  "min-position"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>
The smallest possible value for the position property. This property is derived from the
size and shrinkability of the widget's children.</p>
<p>
</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
<p>Since 2.4</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned--position"></a><h3>The <code class="literal">"position"</code> property</h3>
<pre class="programlisting">  "position"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>Position of paned separator in pixels (0 means all the way to the left/top).</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned--position-set"></a><h3>The <code class="literal">"position-set"</code> property</h3>
<pre class="programlisting">  "position-set"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>TRUE if the Position property should be used.</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.child-property-details"></a><h2>Child Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkPaned--c-resize"></a><h3>The <code class="literal">"resize"</code> child property</h3>
<pre class="programlisting">  "resize"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>
The "resize" child property determines whether the child expands and
shrinks along with the paned widget.</p>
<p>
</p>
<p>Default value: TRUE</p>
<p>Since 2.4</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned--c-shrink"></a><h3>The <code class="literal">"shrink"</code> child property</h3>
<pre class="programlisting">  "shrink"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>
The "shrink" child property determines whether the child can be made
smaller than its requisition.</p>
<p>
</p>
<p>Default value: TRUE</p>
<p>Since 2.4</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.style-property-details"></a><h2>Style Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkPaned--s-handle-size"></a><h3>The <code class="literal">"handle-size"</code> style property</h3>
<pre class="programlisting">  "handle-size"              <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>Width of handle.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 5</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkPaned.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="GtkPaned-accept-position"></a><h3>The <code class="literal">"accept-position"</code> signal</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            user_function                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *widget,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>  user_data)      : Run Last / Action</pre>
<p>
The ::accept-position signal is a
keybinding signal
which gets emitted to accept the current position of the handle when 
moving it using key bindings.
</p>
<p>
The default binding for this signal is Return or Space.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the object that received the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned-cancel-position"></a><h3>The <code class="literal">"cancel-position"</code> signal</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            user_function                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *widget,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>  user_data)      : Run Last / Action</pre>
<p>
The ::cancel-position signal is a 
keybinding signal
which gets emitted to cancel moving the position of the handle using key 
bindings. The position of the handle will be reset to the value prior to 
moving it.
</p>
<p>
The default binding for this signal is Escape.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the object that received the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned-cycle-child-focus"></a><h3>The <code class="literal">"cycle-child-focus"</code> signal</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            user_function                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *widget,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>  reversed,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>  user_data)      : Run Last / Action</pre>
<p>
The ::cycle-child-focus signal is a 
keybinding signal
which gets emitted to cycle the focus between the children of the paned.
</p>
<p>
The default binding is f6.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the object that received the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>reversed</code></em> :</span></p></td>
<td> whether cycling backward or forward
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned-cycle-handle-focus"></a><h3>The <code class="literal">"cycle-handle-focus"</code> signal</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            user_function                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *widget,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>  reversed,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>  user_data)      : Run Last / Action</pre>
<p>
The ::cycle-handle-focus signal is a 
keybinding signal
which gets emitted to cycle whether the paned should grab focus to allow
the user to change position of the handle by using key bindings.
</p>
<p>
The default binding for this signal is f8.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the object that received the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>reversed</code></em> :</span></p></td>
<td> whether cycling backward or forward
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned-move-handle"></a><h3>The <code class="literal">"move-handle"</code> signal</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            user_function                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a>     *widget,
                                                        <a class="link" href="gtk-Standard-Enumerations.html#GtkScrollType" title="enum GtkScrollType">GtkScrollType</a> scroll_type,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>      user_data)        : Run Last / Action</pre>
<p>
The ::move-handle signal is a 
keybinding signal
which gets emitted to move the handle when the user is using key bindings 
to move it.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the object that received the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>scroll_type</code></em> :</span></p></td>
<td> a <a class="link" href="gtk-Standard-Enumerations.html#GtkScrollType" title="enum GtkScrollType"><span class="type">GtkScrollType</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPaned-toggle-handle-focus"></a><h3>The <code class="literal">"toggle-handle-focus"</code> signal</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            user_function                      (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *widget,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>  user_data)      : Run Last / Action</pre>
<p>
The ::toggle-handle-focus is a 
keybinding signal
which gets emitted to accept the current position of the handle and then 
move focus to the next widget in the focus chain.
</p>
<p>
The default binding is Tab.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the object that received the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.11</div>
</body>
</html>
